#include <iostream>
#define PI 3.14 
using std::cout;
using std::endl;

class Circle{
public:
    Circle(){
        cout << "Circle()" << endl;
        _rad = 0;
    };

    Circle(double r)
    :_rad(r)
    {
        cout << "Circle(double)" << endl;
    }

    double getArea(){
        return PI*_rad*_rad;
    }
    
    double getPerimeter(){
        return 2*PI*_rad;
    }
    
    void show(){
        cout << "radius: " << _rad<< endl;
        cout << "Area: " << getArea() << endl;
        cout << "Perimeter: " << getPerimeter() << endl;
    }

private:
    double _rad;
};

void test0(){
    Circle c(2);
    c.show();
}

int main(int argc, char * argv[])
{
    test0();
    return 0;
}


